<?php
// +----------------------------------------------------------------------
// | ZBPHP[基于ThinkPHP5.1开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2019 http://www.lwwan.com
// +----------------------------------------------------------------------
// | Author 似水星辰 [ 2630481389@qq.com ]
// +----------------------------------------------------------------------
// | 河南犇犇网络科技有限公司
// +----------------------------------------------------------------------

namespace app\operation\validate;


class SystemMessage extends \think\Validate
{
    // 定义验证规则
    protected $rule = [
        'title|消息标题'  => 'require|max:20',
        'content|消息内容'  => 'require'
    ];

    // 定义验证场景
    protected $scene = [
        'name' => ['name']
    ];
}